package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Receviead extends RecevieadKey implements Serializable {
    private String radetail;

    private static final long serialVersionUID = 1L;

    public String getRadetail() {
        return radetail;
    }

    public void setRadetail(String radetail) {
        this.radetail = radetail;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Receviead other = (Receviead) that;
        return (this.getAid() == null ? other.getAid() == null : this.getAid().equals(other.getAid()))
            && (this.getBuid() == null ? other.getBuid() == null : this.getBuid().equals(other.getBuid()))
            && (this.getRadid() == null ? other.getRadid() == null : this.getRadid().equals(other.getRadid()))
            && (this.getRadetail() == null ? other.getRadetail() == null : this.getRadetail().equals(other.getRadetail()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAid() == null) ? 0 : getAid().hashCode());
        result = prime * result + ((getBuid() == null) ? 0 : getBuid().hashCode());
        result = prime * result + ((getRadid() == null) ? 0 : getRadid().hashCode());
        result = prime * result + ((getRadetail() == null) ? 0 : getRadetail().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", radetail=").append(radetail);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}